// app.js
App({
    goodsdata:[
      {
        id:0,
        title:"【帕梅拉推荐】喜茶空茶0糖0卡0脂无糖茶饮料4口味可选*12/15瓶",
        price:"¥53.50",
        originprice:"¥66.00",
        image:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods1.png?sign=baf10c5336c4ef002166bf62dbd445af&t=1716463789",
        img:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods1.png?sign=baf10c5336c4ef002166bf62dbd445af&t=1716463789",
        guige:[
          "水仙乌龙茶*15瓶"
        ],
        guige1:[
          "玄米大麦饮*15瓶"
        ],
        guige2:[
          "金桂凤凰单丛*15瓶"
        ],
        guige3:[
          "金凤乌龙茶*15瓶"
        ]
      },
      {
        id:1,
        title:"【新品】喜茶轻果茶低糖茶饮料450ml[*12瓶/15瓶",
        price:"¥59.40",
        originprice:"¥66.00",
        image:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods2.png?sign=c1f3753b2597aebd26ec4a4260a15576&t=1716463835",
        img:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods2.png?sign=c1f3753b2597aebd26ec4a4260a15576&t=1716463835",
        guige:[
          "铁观音乌龙茶 15瓶/箱"
        ],
        guige1:[
          "黑加仑乌龙茶 15瓶/箱"
        ],    
        guige2:[
          "蔓越莓绿茶 15瓶/箱"
        ],
        guige3:[
          "卡曼橘绿茶 15瓶/箱"
        ]
      },
      {
        id:2,
        title:"【新品】喜茶轻柠茶低糖低卡零脂绿妍柠檬茶饮料450ml*15瓶",
        price:"¥74.30",
        originprice:"¥82.50",
        image:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods3.png?sign=44c19d1dc4a810d01d4f1c88b247377c&t=1716463859",
        img:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods3.png?sign=44c19d1dc4a810d01d4f1c88b247377c&t=1716463859",
        guige:[
          "轻柠茶15瓶/箱"
        ],
        guige1:[
          "低糖"
        ],    
        guige2:[
          "低卡"
        ],
        guige3:[
          "零脂"
        ]
      },
      {
        id:3,
        title:"阿喜有礼 黑金实体卡",
        price:"¥100.00",
        image:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods4.png?sign=30368a5e571a0e94eeb7905dcbe6cdcf&t=1716463888",
        img:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/goods4.png?sign=30368a5e571a0e94eeb7905dcbe6cdcf&t=1716463888",
        guige:[
          "黑金卡100元"
        ],
        guige1:[
          "30025人购买"
        ],    
        guige2:[
          "实体预付卡"
        ],
        guige3:[
          "三年内有效"
        ]
      },
      {
        id:4,
        title:"灵感一周茶礼盒7款喜茶经典茗茶7袋/盒",
        price:"¥37.00",
        originprice:"¥48.00",
        image:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/banner/ban2.png?sign=f10c5f39cdbad13c7eb08ac6598cae4e&t=1716463923",
        img:"https://7869-xichaaa-0gnh8d4f2a750362-1326668818.tcb.qcloud.la/banner/ban2.png?sign=f10c5f39cdbad13c7eb08ac6598cae4e&t=1716463923",
        guige:[
          "1盒(7袋茶包)"
        ],
        guige1:[
          "真原茶"
        ],    
        guige2:[
          "无茶粉"
        ],
        guige3:[
          "包装升级"
        ]
      },
    ],
    onLaunch() {
      // 展示本地存储能力
      const logs = wx.getStorageSync('logs') || []
      logs.unshift(Date.now())
      wx.setStorageSync('logs', logs)
  
      // 登录
      wx.login({
        success: res => {
          // 发送 res.code 到后台换取 openId, sessionKey, unionId
        }
      })
    },
    globalData: {
      userInfo: null
    }
  })
  